<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/equipmentPart/partLookUpForOne" onsubmit="return  dwzSearch(this, 'dialog');">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                <label>
                    <@label key="partCode.C,colon">备件编号：</@label>
                </label>
                <input type="text" class="textInput" name="partCode" value="${condition.partCode!''}" />
            </li>
            <li>
                <label>
                    <@label key="partText.C,colon">备件描述：</@label>
                </label>
                <input type="text" class="textInput" name="partText" value="${condition.partText!''}" />
            </li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>

            </ul>
        </div>
    </div>
</form>

<div class="pageContent">
    <table class="table" targetType="dialog" width="100%" layoutH="138">
        <thead>
            <tr>
                <th width="100" orderField="partCode"<#if (page.orderField?? && page.orderField == 'partCode')>class="${page.orderDirection!''}"</#if>><@label key="partCode.C">备件编号</@label></th>
                <th width="100" orderField="partText"<#if (page.orderField?? && page.orderField == 'partText')>class="${page.orderDirection!''}"</#if>><@label key="partText.C">备件描述</@label></th>
                <th width="100" orderField="specModel"<#if (page.orderField?? && page.orderField == 'specModel')>class="${page.orderDirection!''}"</#if>><@label key="specModel.C">规格型号</@label></th>
                <th width="100" orderField="applicableEquipment"<#if (page.orderField?? && page.orderField == 'applicableEquipment')>class="${page.orderDirection!''}"</#if>><@label key="applicableEquipment.C">应用设备</@label></th>
                <th width="80"><@label key="selected_first.C">请选择</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as part>
            <tr target="part_code" rel="${part.partCode!''}">
                <td>${part.partCode!''}</td>
                <td>${part.partText!''}</td>
                <td>${part.specModel!''}</td>
                <td>${part.applicableEquipment!''}</td>
                <td><a class="btnSelect bringBack" value="partCode:'${part.partCode!''}', partText:'<@json_escape>${part.partText!''}</@json_escape>'" ><@label key="select.B">选择</@label></a></td>        
                
            </tr>
            </#list> <#else>
            <tr target="equipment_code">
                <td colspan="5" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</font>
                </td>
            </tr>
            </#if> <#else>
            <tr target="equipment_code">
                <td colspan="5" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</font>
                </td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/dialogPanelBar.html">
</div>